package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.payTaxes.PayNashuixinxi;
import com.ruoyi.system.mapper.PayNashuixinxiMapper;
import com.ruoyi.system.service.IPayNashuixinxiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 納稅信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-10
 */
@Service
public class PayNashuixinxiServiceImpl implements IPayNashuixinxiService
{
    @Autowired
    private PayNashuixinxiMapper payNashuixinxiMapper;

    /**
     * 查询納稅信息
     * 
     * @param id 納稅信息主键
     * @return 納稅信息
     */
    @Override
    public PayNashuixinxi selectPayNashuixinxiById(Integer id)
    {
        return payNashuixinxiMapper.selectPayNashuixinxiById(id);
    }

    /**
     * 查询納稅信息列表
     * 
     * @param payNashuixinxi 納稅信息
     * @return 納稅信息
     */
    @Override
    public List<PayNashuixinxi> selectPayNashuixinxiList(PayNashuixinxi payNashuixinxi)
    {
        return payNashuixinxiMapper.selectPayNashuixinxiList(payNashuixinxi);
    }

    /**
     * 新增納稅信息
     * 
     * @return 结果
     */
    @Override
    public int insertPayNashuixinxi(PayNashuixinxi payNashuixinxi)
    {
        return payNashuixinxiMapper.insertPayNashuixinxi( payNashuixinxi);
    }

    /**
     * 修改納稅信息
     * 
     * @param payNashuixinxi 納稅信息
     * @return 结果
     */
    @Override
    public int updatePayNashuixinxi(PayNashuixinxi payNashuixinxi)
    {
        return payNashuixinxiMapper.updatePayNashuixinxi(payNashuixinxi);
    }

    /**
     * 批量删除納稅信息
     * 
     * @param ids 需要删除的納稅信息主键
     * @return 结果
     */
    @Override
    public int deletePayNashuixinxiByIds(Integer[] ids)
    {
        return payNashuixinxiMapper.deletePayNashuixinxiByIds(ids);
    }

    /**
     * 删除納稅信息信息
     * 
     * @param id 納稅信息主键
     * @return 结果
     */
    @Override
    public int deletePayNashuixinxiById(Integer id)
    {
        return payNashuixinxiMapper.deletePayNashuixinxiById(id);
    }
}
